﻿<%@ Page Title="" Language="C#" MasterPageFile="~/kcadastro.Master" AutoEventWireup="true" CodeBehind="cadastroP1.aspx.cs" Inherits="Kcadastro.fuser.cadastroP1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../css/fuser.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div class="formulario">
<h1>Cadastro de Usuário</h1>
    <asp:TextBox ID="tbi_user" Visible="false" runat="server"></asp:TextBox>
    <asp:Panel ID="Panel2" runat="server">
    <div align="center">
        <label>CPF: </label>
            <asp:TextBox ID="tb_cpf" runat="server"></asp:TextBox>
        <asp:MaskedEditExtender ID="MaskedEditExtender2" runat="server"  TargetControlID="tb_cpf" Mask="999.999.999/99"   MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="validador" MaskType="None" InputDirection="LeftToRight" AcceptNegative="Left"  ErrorTooltipEnabled="True">
        </asp:MaskedEditExtender>
            <asp:Button ID="bt_cpf" runat="server" Text="Consultar" 
                onclick="bt_cpf_Click1" />
        
            <br />
        <asp:Literal ID="lt_msg" runat="server"></asp:Literal>
        </div>
    </asp:Panel>
<h2>dados pessoais</h2>
<asp:Panel ID="Panel1" runat="server">
  
    <div style="width:550px;margin-left:150px">
        <span class="espacador">&nbsp;</span>
        <label>Nome Completo: </label>
        <asp:TextBox ID="tb_nomecompleto" Columns="40" ReadOnly="true" runat="server"></asp:TextBox><br />
        <span class="espacador">&nbsp;</span>
        <label>Primeiro Nome: </label>
        <asp:TextBox ID="tb_primeironome" Columns="30" ValidationGroup="cadp1" MaxLength="30" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="cadp1" ControlToValidate="tb_primeironome" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator><br />
        <span class="espacador">&nbsp;</span>
        <label>Último Nome: </label>
        <asp:TextBox ID="tb_ultimonome" Columns="30" ValidationGroup="cadp1" MaxLength="30" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ValidationGroup="cadp1" ControlToValidate="tb_ultimonome" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator><br />
        <span class="espacador">&nbsp;</span>
        <label>E-mail: </label>
        <asp:TextBox ID="tb_email" ValidationGroup="cadp1" Columns="40" MaxLength="80" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ValidationGroup="cadp1" ControlToValidate="tb_email" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator><asp:RegularExpressionValidator  ValidationGroup="cadp1" ID="RegularExpressionValidator3" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="tb_email" runat="server" CssClass="validador" Display="Dynamic" ErrorMessage="e-mail Inválido!"></asp:RegularExpressionValidator><br />
        <span class="espacador">&nbsp;</span>
        <label>Data Nascimento: </label>
        <asp:TextBox ID="tb_dtnasc" ValidationGroup="cadp1" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="tb_dtnasc" ValidationGroup="cadp1" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server"  TargetControlID="tb_dtnasc" Mask="99/99/9999"   MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="validador" MaskType="None" InputDirection="LeftToRight" AcceptNegative="Left"  ErrorTooltipEnabled="True">
                </asp:MaskedEditExtender>
        <br />

            <asp:Button ID="bt_gravar" runat="server" Text="Gravar" CssClass="botaoformulario" ValidationGroup="cadp1" onclick="bt_gravar_Click" /><br />
                <asp:Literal ID="lt_msgcad" runat="server"></asp:Literal>
                </asp:Panel>
                </div>

</asp:Content>
